import request from "@/utils/request";

export function getBuildingListAPI(params) {
  return request({
    url: "/park/building",
    method: "get",
    params,
  });

}

export function addBuildingAPI(data) {
  return request({
    url: "/park/building",
    method: "post",
    data,
  });
}

export function BuildingDetailAPI(id) {
  return request({
    url: `/park/building/${id}`,
    method: "get",
  });
}
export function updateBuildingAPI(data) {
  return request({
    url: "/park/building",
    method: "put",
    data, 
  })
}

export function deleteBuildingAPI(id) {
  return request({
    url: `/park/building/${id}`,
    method: "delete",
  });
}